package com.niiwoo.civet.trade.dto.response.myloan;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class ProjectInvestorPlanResponseDTO implements Serializable{

    private static final long serialVersionUID = -3803453835891064621L;

    //回款记录
    private List<ReceivableRecords> receivableRecords = new ArrayList<>();;

    //利息总计
    private BigDecimal interestTotal;

    //预计回款总额
    private BigDecimal  receivableTotalAmount;

    //投资金额
    private BigDecimal  investAmount;

    //满标日期
    private String fullSuccessTime;

    //标的状态(0.未满标 1.已满标)
    private Byte projectState;

    //用户是否投资(0.未投标 1.已投标 )
    private Byte isInvest;

    @Setter
    @Getter
    static public class ReceivableRecords implements Serializable{

        private static final long serialVersionUID = 2317953963845937621L;
        //回款日期
        private String receiveDate;

        //本息
        private BigDecimal  totalAmount;

        //应收本金
        private BigDecimal  receivableAmount;

        //应收利息
        private BigDecimal  receivableRate;


    }


}